from rest_framework import serializers

from common.models import Province, City, District


class ProvinceSerializer(serializers.ModelSerializer):

    class Meta:
        model = Province
        fields = '__all__'


class CitySerializer(serializers.ModelSerializer):

    class Meta:
        model = City
        fields = ('city_id', 'city_name')


class DistrictSerializer(serializers.ModelSerializer):

    class Meta:
        model = District
        fields = ('dist_id', 'dist_name')
